package com.ruoyi.system.domain.award.competition;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 竞赛获奖信息对象 competition_award_info
 * 11
 * @author ruoyi
 * @date 2025-07-28
 */
public class CompetitionAwardInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 竞赛名次 */
    @Excel(name = "竞赛名称")
    private String competitionName;
    /** 竞赛名次 */
    @Excel(name = "竞赛名次")
    private String competitionRank;

    /** 竞赛级别 */
    @Excel(name = "竞赛级别")
    private String competitionLevel;

    /** 组织单位 */
    @Excel(name = "组织单位")
    private String organizationUnit;

    /** 获奖等级 */
    @Excel(name = "获奖等级")
    private String awardLevel;

    /** 获奖时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "获奖时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date awardTime;

    /** 上传附件路径 */
    @Excel(name = "上传附件路径")
    private String attachment;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdDate;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedDate;
    /** 开始时间 */
    private Date beginTime;
    /** 结束时间 */
    private Date endTime;
    /** 创建人 */
    private String teacherName;
    /** 创建人 */
    private Long teacherId;
    // 嵌套的作品列表（核心：子项集合）
    private List<CompetitionAwardWorks> works;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setCompetitionRank(String competitionRank) 
    {
        this.competitionRank = competitionRank;
    }

    public String getCompetitionRank() 
    {
        return competitionRank;
    }

    public void setCompetitionLevel(String competitionLevel) 
    {
        this.competitionLevel = competitionLevel;
    }

    public String getCompetitionLevel() 
    {
        return competitionLevel;
    }

    public void setOrganizationUnit(String organizationUnit) 
    {
        this.organizationUnit = organizationUnit;
    }

    public String getOrganizationUnit() 
    {
        return organizationUnit;
    }

    public void setAwardLevel(String awardLevel) 
    {
        this.awardLevel = awardLevel;
    }

    public String getAwardLevel() 
    {
        return awardLevel;
    }

    public void setAwardTime(Date awardTime) 
    {
        this.awardTime = awardTime;
    }

    public Date getAwardTime() 
    {
        return awardTime;
    }

    public void setAttachment(String attachment) 
    {
        this.attachment = attachment;
    }

    public String getAttachment() 
    {
        return attachment;
    }

    public void setCreatedDate(Date createdDate) 
    {
        this.createdDate = createdDate;
    }

    public Date getCreatedDate() 
    {
        return createdDate;
    }

    public void setUpdatedDate(Date updatedDate) 
    {
        this.updatedDate = updatedDate;
    }

    public Date getUpdatedDate() 
    {
        return updatedDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
                .append("competitionName", getCompetitionName())
            .append("competitionRank", getCompetitionRank())
            .append("competitionLevel", getCompetitionLevel())
            .append("organizationUnit", getOrganizationUnit())
            .append("awardLevel", getAwardLevel())
            .append("awardTime", getAwardTime())
            .append("attachment", getAttachment())
            .append("createdDate", getCreatedDate())
            .append("updatedDate", getUpdatedDate())
            .toString();
    }

    public String getCompetitionName() {
        return competitionName;
    }

    public void setCompetitionName(String competitionName) {
        this.competitionName = competitionName;
    }

    public List<CompetitionAwardWorks> getWorks() {
        return works;
    }

    public void setWorks(List<CompetitionAwardWorks> works) {
        this.works = works;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public Long getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Long teacherId) {
        this.teacherId = teacherId;
    }
}
